package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;

public class ObjectParameterAdapter implements ParameterAdapter<Object> {
    public static final ObjectParameterAdapter OBJECT_PARAMETER_ADAPTER = new ObjectParameterAdapter();


    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, Object data) throws SQLException {
        ps.setObject(index, data);
    }
}
